<div class="layui-btn-container">
    @@for(btn in btns){@@
    @@if(btn.id=='add'){@@
        @@if(shiro.hasPermission(btn.permission)){@@
            <button class="layui-btn layui-btn-sm" lay-event="add"><i class="layui-icon layui-icon-add-1"></i>新增</button>
        @@}@@
    @@}else if(btn.id=='import'){@@
        <button class="layui-btn layui-btn-sm" lay-event="import" id="import"><i class="layui-icon layui-icon-upload-circle"></i>导入</button>
    @@}else if(btn.id=='export'){@@
        <button class="layui-btn layui-btn-sm" lay-event="export"><i class="layui-icon layui-icon-download-circle"></i>导出</button>
    @@}else if(btn.id=='del'){@@
        @@if(shiro.hasPermission(btn.permission)){@@
            <button class="layui-btn layui-btn-sm" lay-event="del"><i class="layui-icon layui-icon-delete"></i>删除</button>
        @@}@@
    @@}else if(btn.id=='init'){@@
        @@if(shiro.hasPermission(btn.permission)){@@
            <button class="layui-btn layui-btn-sm" lay-event="init"><i class="layui-icon layui-icon-refresh"></i>初始化</button>
        @@}@@
    @@}else if(btn.id=='sync'){@@
        @@if(shiro.hasPermission(btn.permission)){@@
            <button class="layui-btn layui-btn-sm" lay-event="sync">同步ERP</button>
        @@}@@
    @@}else if(btn.id=='transformOrder'){@@
        @@if(shiro.hasPermission(btn.permission)){@@
            <button class="layui-btn layui-btn-sm" lay-event="transformOrder">转订单</button>
        @@}@@
    @@}else if(btn.id=='check'){@@
        @@if(shiro.hasPermission(btn.permission)){@@
            <button class="layui-btn layui-btn-sm" lay-event="check">审核</button>
        @@}@@
    @@}else if(btn.id=='unCheck'){@@
        @@if(shiro.hasPermission(btn.permission)){@@
            <button class="layui-btn layui-btn-sm" lay-event="unCheck">取消审核</button>
        @@}@@
    @@}else if(btn.id=='transferERP'){@@
        @@if(shiro.hasPermission(btn.permission)){@@
            <button class="layui-btn layui-btn-sm" lay-event="transferERP">转ERP订单</button>
        @@}@@
    @@}else if(btn.id=='puhuo'){@@
        @@if(shiro.hasPermission(btn.permission)){@@
            <button class="layui-btn layui-btn-sm" lay-event="puhuo">铺货新增</button>
        @@}@@
    @@}else if(btn.id=='restoreERP'){@@
        @@if(shiro.hasPermission(btn.permission)){@@
            <button class="layui-btn layui-btn-sm" lay-event="restoreERP">撤销ERP订单</button>
        @@}@@
    @@}else if(btn.id=='giftButton'){@@
        @@if(shiro.hasPermission(btn.permission)){@@
            <button class="layui-btn layui-btn-sm" lay-event="giftInfo">赠品信息</button>
        @@}@@
    @@}else if(btn.id=='renew'){@@
        @@if(shiro.hasPermission(btn.permission)){@@
            <button class="layui-btn layui-btn-sm" lay-event="renew">展期</button>
        @@}@@
    @@}else if(btn.id=='transform'){@@
        @@if(shiro.hasPermission(btn.permission)){@@
            <button class="layui-btn layui-btn-sm" lay-event="transform">抛转</button>
        @@}@@
    @@}else if(btn.id=='confirm'){@@
        @@if(shiro.hasPermission(btn.permission)){@@
        <button class="layui-btn layui-btn-sm" lay-event="confirm">确认</button>
        @@}@@
    @@}else if(btn.id=='confirmCancel'){@@
        @@if(shiro.hasPermission(btn.permission)){@@
        <button class="layui-btn layui-btn-sm" lay-event="confirmCancel">取消确认</button>
        @@}@@
    @@}else if(btn.id=='return'){@@
        @@if(shiro.hasPermission(btn.permission)){@@
            <button class="layui-btn layui-btn-sm" lay-event="return">确认退货</button>
        @@}@@
    @@}else if(btn.id=='commit'){@@
        @@if(shiro.hasPermission(btn.permission)){@@
            <button class="layui-btn layui-btn-sm" lay-event="commit">提交</button>
        @@}@@
    @@}else if(btn.id=='unCommit'){@@
        @@if(shiro.hasPermission(btn.permission)){@@
            <button class="layui-btn layui-btn-sm" lay-event="unCommit">取消提交</button>
        @@}@@
    @@}else if(btn.id=='valid'){@@
        @@if(shiro.hasPermission(btn.permission)){@@
            <button class="layui-btn layui-btn-sm" lay-event="valid">有效</button>
        @@}@@
    @@}else if(btn.id=='invalid'){@@
        @@if(shiro.hasPermission(btn.permission)){@@
            <button class="layui-btn layui-btn-sm" lay-event="invalid">无效</button>
        @@}@@
    @@}else if(btn.id=='detail'){@@
        @@if(shiro.hasPermission(btn.permission)){@@
        <button class="layui-btn layui-btn-sm" lay-event="detail">详情</button>
        @@}@@
    @@}else if(btn.id=='saveTable'){@@
        @@if(shiro.hasPermission(btn.permission)){@@
        <button class="layui-btn layui-btn-sm" lay-event="saveTable">回款保存</button>
        @@}@@
    @@}else if(btn.id=='autoGeneration'){@@
        @@if(shiro.hasPermission(btn.permission)){@@
        <button class="layui-btn layui-btn-sm" lay-event="autoGeneration">自动生成</button>
        @@}@@
    @@}else if(btn.id=='ship'){@@
        @@if(shiro.hasPermission(btn.permission)){@@
            <button class="layui-btn layui-btn-sm" lay-event="ship">出货明细</button>
        @@}@@
    @@}else if(btn.id=='check_accept'){@@
        @@if(shiro.hasPermission(btn.permission)){@@
            <button class="layui-btn layui-btn-sm" lay-event="check_accept">验收明细</button>
        @@}@@
    @@}else if(btn.id=='invoice'){@@
        @@if(shiro.hasPermission(btn.permission)){@@
            <button class="layui-btn layui-btn-sm" lay-event="invoice">开票明细</button>
        @@}@@
    @@}else if(btn.id=='payback'){@@
        @@if(shiro.hasPermission(btn.permission)){@@
            <button class="layui-btn layui-btn-sm" lay-event="payback">回款明细</button>
        @@}@@
    @@}else if(btn.id=='transferReport'){@@
        @@if(shiro.hasPermission(btn.permission)){@@
            <button class="layui-btn layui-btn-sm" lay-event="transferReport">报工单转入</button>
        @@}@@
    @@}else if(btn.id=='confirm'){@@
        @@if(shiro.hasPermission(btn.permission)){@@
            <button class="layui-btn layui-btn-sm" lay-event="confirm">确认</button>
        @@}@@
    @@}else if(btn.id=='confirmCancel'){@@
        @@if(shiro.hasPermission(btn.permission)){@@
            <button class="layui-btn layui-btn-sm" lay-event="confirmCancel">取消确认</button>
        @@}@@
    @@}else if(btn.id=='print'){@@
        @@if(shiro.hasPermission(btn.permission)){@@
            <button class="layui-btn layui-btn-sm" lay-event="print">打印</button>
        @@}@@
    @@}else if(btn.id=='printEn'){@@
        @@if(shiro.hasPermission(btn.permission)){@@
            <button class="layui-btn layui-btn-sm" lay-event="printEn">英文打印</button>
        @@}@@
    @@}else if(btn.id=='accept'){@@
        @@if(shiro.hasPermission(btn.permission)){@@
            <button class="layui-btn layui-btn-sm" lay-event="accept">受理</button>
        @@}@@
    @@}else if(btn.id=='paigong'){@@
        @@if(shiro.hasPermission(btn.permission)){@@
            <button class="layui-btn layui-btn-sm" lay-event="paigong">派工</button>
        @@}@@
    @@}else if(btn.id=='huifang'){@@
        @@if(shiro.hasPermission(btn.permission)){@@
            <button class="layui-btn layui-btn-sm" lay-event="huifang">回访结案</button>
        @@}@@
    @@}else if(btn.id=='batch'){@@
        @@if(shiro.hasPermission(btn.permission)){@@
            <button class="layui-btn layui-btn-sm" lay-event="batch">批次产生</button>
        @@}@@
    @@}else if(btn.id=='revoke'){@@
        @@if(shiro.hasPermission(btn.permission)){@@
            <button class="layui-btn layui-btn-sm" lay-event="revoke">退回</button>
        @@}@@
    @@}else if(btn.id=='submit'){@@
        @@if(shiro.hasPermission(btn.permission)){@@
            <button class="layui-btn layui-btn-sm" lay-event="submit">提交</button>
        @@}@@
    @@}else if(btn.id=='cancelSubmit'){@@
        @@if(shiro.hasPermission(btn.permission)){@@
            <button class="layui-btn layui-btn-sm" lay-event="cancelSubmit">取消提交</button>
        @@}@@
    @@}else if(btn.id=='changeRequest'){@@
        @@if(shiro.hasPermission(btn.permission)){@@
            <button class="layui-btn layui-btn-sm" lay-event="changeRequest">变更申请</button>
        @@}@@
    @@}else if(btn.id=='costCheck'){@@
        @@if(shiro.hasPermission(btn.permission)){@@
            <button class="layui-btn layui-btn-sm" lay-event="costCheck">费用耗用核查</button>
        @@}@@
    @@}@@
    @@}@@
</div>
